﻿using System.ComponentModel;
using System.Xml.Serialization;

namespace Landpy.CruiseControlNet.FacadeInterface.ConfigurationModule
{
    public class ArtifactCleanup : Publisher
    {
        [Category("Basic")]
        [Description("Description used for the visualisation of the buildstage, if left empty the process name will be shown.")]
        [XmlElement("description")]
        public string Description { get; set; }

        [Category("Basic")]
        [Description("Defines the procedure to use for cleaning up the artifact folder.")]
        [XmlElement("cleanUpMethod")]
        public CleanUpMethodType CleanUpMethodType { get; set; }

        [Category("Basic")]
        [Description("Defines the value for the cleanup procedure.")]
        [XmlElement("cleanUpValue")]
        public int CleanUpValue { get; set; }

        public ArtifactCleanup()
            : base(PublisherType.ArtifactCleanup)
        {
        }
    }
}
